package com.sacc.clients;

import com.power.common.model.CommonResult;
import com.sacc.pojo.ProductCart;
import com.sacc.pojo.ProductInfoAll;
import com.sacc.pojo.ProductList;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * @author 滚~韬
 * @date 2022/4/7 18:33
 */
@FeignClient(value = "product-center")
public interface ProductClient {
    @GetMapping("/product/cart/get")
    List<Integer> GetCart(@RequestParam String openId);
    @PostMapping("/product/cart/delete")
    CommonResult DeleteCart(@RequestBody ProductCart productCart);
    @PostMapping("/product/cart/add")
    CommonResult AddCart(@RequestBody ProductCart productCart);

    @GetMapping("/product/product/getoneinfo")
    ProductInfoAll GetProductOneInfo(@RequestParam Integer productId);
    @GetMapping("/product/product/getonelist")
    ProductInfoAll GetProductOneList(@RequestParam Integer productId);
    @GetMapping("/product/product/getall")
    List<ProductList> GetProductAll(@RequestParam Integer productId);

}
